package com.hpsk.webSocket.model.ai.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToEmptyObjectSerializer;
import com.hpsk.common.CommonVo;
import com.hpsk.webSocket.model.ai.dto.BizAiMessageContentParamDto;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * <p>
 * 消息内容
 * </p>
 *
 * @author huangwang
 * @since 2025-05-20
 */
@Getter
@Setter
@TableName("biz_ai_message_content")
@Schema(description = "消息内容")
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@AutoMappers({
        @AutoMapper(target = BizAiMessageContentParamDto.class),
})
public class BizAiMessageContent extends CommonVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId("id")
    private Long id;

    @Schema(description = "消息id")
    @TableField("message_id")
    private Long messageId;

    @Schema(description = "类型 1：客户端 2：服务端")
    @TableField("type")
    private String type;

    @Schema(description = "内容")
    @TableField("content")
    private String content;

    @Schema(description = "状态")
    @TableField("stats")
    private String stats;
}
